package com.gitee.webdav.xml;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.gitee.webdav.kernel.Remark;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author hongda.li@hand-china.com
 */
@SuppressWarnings("SpellCheckingInspection")
@Data
@Accessors(chain = true)
@Remark("属性")
@JsonIgnoreProperties(ignoreUnknown = true)
public class Properties {

    @Remark("资源大小")
    @JacksonXmlProperty(localName = "getcontentlength", namespace = "DAV:")
    private String contentLength;

    @Remark("最近修改时间")
    @JacksonXmlProperty(localName = "getlastmodified", namespace = "DAV:")
    private String lastModified;

    @Remark("创建时间")
    @JacksonXmlProperty(localName = "creationdate", namespace = "DAV:")
    private String creationdate;

    @Remark("资源类型")
    @JacksonXmlProperty(localName = "getcontenttype", namespace = "DAV:")
    private String contentType;

    @Remark("展示名称")
    @JacksonXmlProperty(localName = "displayname", namespace = "DAV:")
    private String displayName;

    @Remark("资源类型")
    @JacksonXmlProperty(localName = "resourcetype", namespace = "DAV:")
    private ResourceType resourceType;
}
